@extends("index")

@section("content")

<div role="tabpanel" class="tab-pane" id="cars">
  <br>
  <div id="CarsTable"></div>
</div>

@stop

@section("script")
<script type="text/javascript">

          $(".menu .jichu-item").toggleClass("hidden");
  $("#chexing").addClass("active");
	
  $('#CarsTable').jtable({
    title: '车型管理',
    actions: {
        listAction: '/getcarslist',
        createAction: '/addcar',
        updateAction: '/editecar',
        deleteAction: '/deletecar'
    },
    fields: {
        id: {
            key: true,
            list: false
        },
        型号: {
            title: '型号',
        },
        公司: {
            title: '公司',
            options: '/getcompanys'

        },
        进货价格: {
            title: '进货价格',
        },
        出售价格: {
            title: '出售价格',
        },
        年份: {
            title: '年份',
        },
    }
  });
  $('#CarsTable').jtable('load');
</script>
@stop